package com.zimo.web.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.zimo.web.entity.Weight;

@Repository(value="weightMapper")
public interface WeightMapper {

    @Select(value="select * from weight where u_name=#{u_name}")
    @Results(value={@Result(property="uName",column="u_name"),@Result(property="uAge",column="u_age"),@Result(property="uSex",column="u_sex"),@Result(property="wDate",column="w_date")})
    public List<Weight> getWeightByName(@Param(value="u_name") String uName);
    
}
